<?php /* Smarty version Smarty-3.1.13, created on 2014-11-26 00:02:51
         compiled from "D:\PHPWeb\cms\templates\user_center\account\points_history.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10035546a0d74874ff5-98873611%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ab210f8eb4fca1602675261a0bf30c37bde8f7d8' => 
    array (
      0 => 'D:\\PHPWeb\\cms\\templates\\user_center\\account\\points_history.tpl',
      1 => 1416931320,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10035546a0d74874ff5-98873611',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_546a0d748e42e7_30868238',
  'variables' => 
  array (
    'totalEarn' => 0,
    'totalCost' => 0,
    'history' => 0,
    'comitem' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_546a0d748e42e7_30868238')) {function content_546a0d748e42e7_30868238($_smarty_tpl) {?><h2 class="primary">Points history</h2>
 
<div class="order_history">
Your have earned <h1 class="h1"><?php echo $_smarty_tpl->tpl_vars['totalEarn']->value;?>
</h1> points
 <h3>Your have earned <span><?php echo $_smarty_tpl->tpl_vars['totalEarn']->value;?>
 points  </span></h3>
 <h3>Your have costed  <span><?php echo $_smarty_tpl->tpl_vars['totalCost']->value;?>
 points  </span></h3>
	<div class="account_list">
		<table>
			<tr>
				<th >DATE</th>
				<th >TYPE</th>
				<th >DESC</th>
				<th >POINTS</th>
			</tr>
			<?php  $_smarty_tpl->tpl_vars['comitem'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['comitem']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['history']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['comitem']->key => $_smarty_tpl->tpl_vars['comitem']->value){
$_smarty_tpl->tpl_vars['comitem']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['comitem']->key;
?>
			<tr>
				<td><span ><?php echo $_smarty_tpl->tpl_vars['comitem']->value->create_time;?>
</span></td> 
				<td><span ><?php echo $_smarty_tpl->tpl_vars['comitem']->value->record_type;?>
</span></td>  
				<td><span ><?php echo $_smarty_tpl->tpl_vars['comitem']->value->points_type;?>
</span></td>  
				<td><span ><?php echo $_smarty_tpl->tpl_vars['comitem']->value->points;?>
</span></td>  
			</tr>
			<?php } ?>
		</table>
	</div>
</div><?php }} ?>